home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 778 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: gate.net!pslfl2-47
  2. From: bhutto@gate.net (William Hutto)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: how do i...
  5. Date: 9 Jan 1996 04:01:35 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4cspav$1rdi@news.gate.net>
  8. References: <4cl4ja$558@news-e2a.gnn.com> <DKvC14.Ft6@ariel.cs.yorku.ca>
  9. NNTP-Posting-Host: pslfl2-47.gate.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. >In article <4cl4ja$558@news-e2a.gnn.com> MrBurns@gnn.com (Kevin Kalstein) 
  13. writes:
  14. >>hi all.  i wrote an address book that saves addresses to disk
  15. >>with a .adr extension.  i want to create a feature that allows
  16. >>the user to see the .adr files in the directory.  basically
  17. >>what im looking for is a command that will let me do the dos
  18. >>equivalent of "dir *.adr".  unfortunately i cant find any
  19. >>commands to do this.  im using borland c++ version 3.0.
  20. >>(note this program is written in C not C++).  any help would
  21. >>be greatly appreciated. 
  22.  
  23. I use the _dos_findfirst() / _dos_findnext() functions passing it a 
  24. wildcard string (*.adr) if I desire and create a dynamic linked list of 
  25. structures that includes the date/time and file attribute information. Then I 
  26. display this information however I choose.
  27.  
  28. Bill
  29.  
  30. "Whatcha got on?...Your mind?"
  31.